import URL from '@/config/url'
import utils from '@/utils/utils'

export default {
	// banner
	getbanner(params = {}) {
		let data = {
			type:params.type
		}
		return utils.uniRequest({ url: URL.BASE+ '/base/banner', data })
	},
	// 获取城市id
	getCitys(params = {}) {
		let data = {
			cityid: params.cityid,  // 
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/Estate/getCitys', data })
	},
	// 按户型找设计方案列表
	gethotlist(params = {}) {
		let data = {
			house_id: params.house_id,  // 
			keyword: params.keyword,  // 
			province: params.province,  // 
			city: params.city,  // 
			room:params.room,
			district: params.district,  // 
			page: params.page,  // 
			pagesize: params.pagesize,  // 
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/RenovateHouse/listbyhouse', data })
	},
	// 小区关键字搜索（默认返回20个）
	getsearchbywords(params = {}) {
		let data = {
			keyword: params.keyword,  // 
			province: params.province,  // 
			city: params.city,  // 
			district: params.district,  // 
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/Estate/searchbywords', data })
	},
	// 根据条件找户型图
	getsearhouselist(params = {}) {
		let data = {
			keyword: params.keyword,  // 
			province: params.province,  // 
			city: params.city,  // 
			district: params.district,  // 
			rooms: params.rooms,  // 
			page: params.page,  //
			pagesize: 10,  // 
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/RenovateHouse/houselist', data })
	},
	// 户型详情
	getdeatil(params = {}) {
		let data = {
			house_id: params.house_id,  // 
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/RenovateHouse/getDetail', data })
	},
	// 设计师推荐
	gettuidegin(params = {}) {
		let data = {
			house_id: params.house_id,  //
			page:params.page,
			pagesize:10
		}
		return utils.uniRequest({ url: URL.BASE+ '/designer/designer/getList', data })
	},
	// 获取案例列表
	getDemoList(params = {}) {
		let data = {
			house_id: params.house_id,   // *户型id(int)
			// 筛选条件
			style: params.style,    // *风格
			offer: params.offer,    // *报价(10-20万:10,20)
			is_display:params.is_display,
			// 分页
			page: Number(params.page) || 1,  // 页数(默认1  int)
			pagesize: params.pagesize,       // 页码(默认10  int)
		}
		return utils.uniRequest({ url: URL.BASE + '/renovate/RenovateHouse/houseCaseList', data })
	},
	


	


}